import Base_axios from "./base_axios";

export default class User_api extends Base_axios {
  constructor(opt) {
    super(opt.$axios);
  }

  login(username, passowrd) {
    return this.base_post('/v1/login', {
      username, passowrd
    })
  }


  /**
   * 组册或编辑 用户 账号密码
   * @param username
   * @param passowrd
   * @param is_passowrd
   * @param code
   * @returns {*}
   */
  create_user({username, passowrd, is_passowrd, code}) {
    return this.base_post('/v1/user_create', {
      username, passowrd,is_passowrd, code
    })
  }


}
